package com.lovo.bbs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.bbs.bean.User;
import com.lovo.bbs.service.UserService;
import com.lovo.bbs.dao.UserMapper;
import org.springframework.stereotype.Service;

/**
* @author BDK-THINKPAD
* @description 针对表【t_user】的数据库操作Service实现
* @createDate 2023-07-17 10:05:08
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Override
    public User login(String username, String pwd) {
        return getBaseMapper().getByUsernameAndPwd(username,pwd);
    }

    @Override
    public User getByUsername(String username) {
        return getBaseMapper().getByUsername(username);
    }
}




